-
-
Notifications
You must be signed in to change notification settings - Fork 28.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add PECO power outage counter integration #65194
Conversation
I had to revert the first two commits because I closed the other PR for that integration and forgot to push the delete commits. |
Want me to fix the "method could be a function error"? |
Anything I need to do at the moment @farmio? |
Yes sure CI should be green. Then you will have to be patient until a member reviews your code. Consider adding tests or type annotations meanwhile - this makes it easier to review. |
Ah I see. It's looking for the wrong error. Didn't know voluptuous did that! |
Idk if you get e-mails for new commits, but I fixed the MultipleValid error and added some more type definitions |
???????????? I guess I'll use regular |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you are serious about typing try adding your integration to .strict_typing https://github.com/home-assistant/core/blob/dev/.strict-typing and run mypy
again.
Type hinting generics in standard collections was added in Python 3.9. Maybe you are using outdated
Good grief, I'm not 😱 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a few comments.
Seems also the deletion of translation files from the update integration came into this PR?!
Done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some final suggestions. Other than that I think its ready to go 👍
as gjohansson-ST mentioned: Seems the deletion of translation files from the update integration came into this PR.
A much better title and description than before of this PR 🌟 |
I didn't change any dependencies, how do I fix the conflict? |
Try pinning the version here to the same version as in home assistant and see if it’s helps: https://github.com/IceBotYT/peco-outage-api/blob/9850a9682ca90d8b8ec1d5c33c5e26020b7e306e/setup.cfg#L23 |
It’s generally considered good practice to pin versions of dependencies to avoid unwanted updates of dependencies’ dependencies, and to avoid security issues. |
The pip errors are not related to this PR (I have same on one of my PR's). I think someone from core team needs to fix something. |
I still recommend pinning the version though. |
…he outage map, as noted by farmio
Merging to fix dependency conflict upstream to make CI pass
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks nice! 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please address the comments in a new PR. Thanks!
Proposed change
I want to add a new PECO integration that counts the power outages in a user's area.
PECO is the energy company for the Philadelphia and Philadelphia metro.
Learn more here
Type of change
Additional information
Checklist
black --fast homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.The integration reached or maintains the following Integration Quality Scale:
To help with the load of incoming pull requests: